<?php
/**
 * Created by PhpStorm.
 * User: D
 * Date: 2019/5/11
 * Time: 16:52
 */

header("Access-Control-Allow-Origin:*");
header("Content-Type:Application/json;charset=utf-8");
session_start();//开启session

if(!isset($_SESSION["useinfo"])){
    print_r(json_encode(Array("msg" => "请先登录", "status" => -1)));
}else{
    print_r(json_encode(Array("msg" => $_SESSION["useinfo"], "status" => 1)));
}







